﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class Person1
    {
        public string name;
        public string jieshao;
        public int gongji;
        public int fangyu;
        public int sudu;
        public string nikename;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Jieshao
        {
            get { return this.jieshao; }
            set { this.jieshao = value; }
        }
        public int Gongji
        {
            get { return this.gongji; }
            set { this.gongji = value; }
        }
        public int Fangyu
        {
            get { return this.fangyu; }
            set { this.fangyu = value; }
        }
        public int Sudu
        {
            get { return this.sudu; }
            set { this.sudu = value; }
        }
        public string Nikename
        {
            get { return this.nikename; }
            set { this.nikename = value; }
        }
        public Person1(string name, string jieshao, int gongji, int fangyu, int sudu, string nikename)
        {
            this.name = name;
            this.jieshao = jieshao;
            this.gongji = gongji;
            this.fangyu = fangyu;
            this.sudu = sudu;
            this.nikename = nikename;
        }

        public void show()
        {
            Console.WriteLine("英雄名称{0}，昵称{1}，英雄介绍{2}，攻击{3}，防御{4}，速度{5}", this.name, this.nikename, this.jieshao, this.gongji, this.fangyu, this.sudu);
        }
    }
}
